<?php

namespace App\Http\Filters;

class HousingsCommentFilter extends Filter
{
    protected $simpleFilters = [
        'id',
    ];

    protected $filters = [
        'housingsorder',
    ];

    protected function housingsorder($val)
    {

        $this->builder->whereHas('housingsorder', function ($query) use ($val) {
            $query->where('sn', 'like', $val.'%');
        });
    }
}
